Update plugin 金价动态 v1.0.1#300
Conversation
- Initial commit - 优化金价数据获取和处理逻辑,增强错误处理,更新类型检查设置 - 优化应用加载逻辑,增强 ZTools 环境支持,调整样式以改善布局 - 新增历年均价对比功能,优化数据获取逻辑,更新数据结构和接口 - v1.0.1: 优化快照写入机制,修复多天累积后界面加载失败
There was a problem hiding this comment.
Code Review
This pull request introduces request cancellation using AbortController, state management optimizations to eliminate useMemo side effects, and a write-throttling mechanism to prevent high-frequency storage writes. The review feedback highlights a race condition in the concurrency locking logic involving loadingRef and recommends relying solely on abortRef. Additionally, the reviewer identified a bug in the monthly snapshot update where a 0.01 threshold check can permanently freeze average price updates when the data count is large.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
- Initial commit - 优化金价数据获取和处理逻辑,增强错误处理,更新类型检查设置 - 优化应用加载逻辑,增强 ZTools 环境支持,调整样式以改善布局 - 新增历年均价对比功能,优化数据获取逻辑,更新数据结构和接口 - v1.0.1: 优化快照写入机制,修复多天累积后界面加载失败 - fix: 修复并发锁竞态条件和月度均价冻结bug
插件信息
本次变更
截图 / 演示
自检清单
plugins/gold-price-check/目录此 PR 由 ztools-plugin-cli 自动管理:每次
ztools publish在分支上追加一个 commit,PR 链接保持不变。